package com.tansuo365.test1.mapper.othermapper;

import com.tansuo365.test1.bean.InfoData;
import com.tansuo365.test1.bean.otherbean.ShengouDetails;

import java.util.List;

public interface ShengouDetailsMapper {

    List<ShengouDetails> listShengouDetailsByZongId(Integer zongzhangid);

    List<ShengouDetails> listShengouDetailsWithDaohuoIfNotAllBuy(Integer id);

    List<ShengouDetails> listShengouDetailsShouruByZongId(Integer zongzhangid);

    List<InfoData> listShengouInfoDataDetailsByZongId(Integer zongzhangid);

    List<ShengouDetails> listShengouDetailsSelective(ShengouDetails shengouDetails);

    int deleteByPrimaryKey(Integer id);

    int deleteByZongId(Integer zongzhangid);

    //根据申购单总表id,删除申购单下对应的详细申购物料元组
    int deleteByZongIdArr(Integer[] ids);

    int insertSelective(ShengouDetails shengouDetails);

    ShengouDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShengouDetails shengouDetails);

}